{include file="includes/master_header.tpl"}
{if isset($login_by_username) && isset($login_by_email)}
    {assign var="login_label" value="Email or Login"}
{elseif isset($login_by_username)}
    {assign var="login_label" value="Login"}
{else}
    {assign var="login_label" value="Email"}
{/if}
<div class="loginhead">
<span class="loginspan">Log</span><span class="loginspan1">-in</span>
</div>
 <div id="dropdiv">
    <div class="logincenter">
      <div class="logincontents">
        <form id="login_form">
        
           <div class="formsalign1">
            <br /> 
            {ci_form type="input" name="login" id="login" extra="class=\"formformat\" tabindex=\"1\" onclick=\"if(this.value=='$login_label')this.value='';\" onblur=\"if(this.value=='')this.value='$login_label';\"" value="$login_label"}
            <br />
            {ci_form type="checkbox" name="remember" id="remember" value="1" checked="{ci_form_validation field='remember'}" style="margin:0;padding:0" extra="tabindex=\"3\""}
            {ci_form type="label" text="Remember me" id="remember"}
           </div>

           
           <div class="formsalign2">
            <br /> 
            {ci_form type="password" name="password" id="password" extra="class=\"formformat\" tabindex=\"2\" onclick=\"if(this.value=='Password')this.value='';\" onblur=\"if(this.value=='')this.value='Password';\"" value="Password"}
            <br />            
           <a href="{ci_config name='base_url'}auth/forgot_password/">Forgot password</a>
           </div>
           </form>
           <div class="formsalign3">
           {ci_form type="submit" name="submit" value="Login" extra="class=\"button\""}

           </div>
        
          <div class="registerlink">
          A UPC Minister in Eastern Visayas District?&nbsp;&nbsp;&nbsp;<a href="{ci_config name='base_url'}auth/register/">Register here</a> 
          </div>
        
       <br /><br /><br />

      </div>                    
    </div>
 </div>
 <div class="loginfoot">
 <div class="footercontents">
      <span class="pagegenlogin">Page generated in {$this->benchmark->elapsed_time()} seconds</span>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      <span class="designtextlogin">Website designed by <a href="http://twitter.com/NaClOrg">NaCl.org</a> | {ci_config name='app_version'}r{$revision}</span>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      <span class="termlogin">&#169; 2011 UPC Eastern Visayas District</span>
</div>
</div>	 
</body>
</html>